x86emul: correct VEX/XOP/EVEX operand size handling for 16-bit code
authorJan Beulich <jbeulich@suse.com>
Wed, 25 Jan 2017 14:08:59 +0000 (15:08 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 25 Jan 2017 14:08:59 +0000 (15:08 +0100)
commitbeb82042447c5d6e7073d816d6afc25c5a423cde
tree5e317812ae3ebcd7b36e6d0d8d5d129af7c3f5b5
parent06348811b63e82f9aa0df4d4b44f1f7f2bb2418a
x86emul: correct VEX/XOP/EVEX operand size handling for 16-bit code

Operand size defaults to 32 bits in that case, but would not have been
set that way in the absence of an operand size override.

Reported-by: Wei Liu <wei.liu2@citrix.com> (by AFL fuzzing)
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/x86_emulate/x86_emulate.c